package org.rslai.tcedit.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import org.hibernate.validator.Length;

/**
 * 配置信息
 * 
 * @author rslai
 */
@Entity
@Table(name="t_config")
public class Config extends UUIDSupport {
	private String configKey; // 配置信息 key
	private String value; // 配置信息内容

	@Column(nullable = false, length = 20)
	@Length(max = 20, message = "配置信息 key请限制在20字以内")
	public String getConfigKey() { return configKey; }
	public void setConfigKey(String configKey) { this.configKey = configKey; }

	@Column(nullable = true, length = 50)
	@Length(max = 50, message = "配置信息内容请限制在50字以内")
	public String getValue() { return value; }
	public void setValue(String value) { this.value = value; }

}
